<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
body {
	width: 100%;
	height: 100%;
	text-align: center;
}

.inputCss {
	border: 0px;
	background: transparent;
}

select {
	height: 38px;
	line-height: 1.3;
	line-height: 38px\9;
	border-width: 1px;
	border-style: solid;
	background-color: #fff;
	border-radius: 2px;
	width: 100%;
}

.iCss {
	color: red;
	padding-right: 5px;
}

.row {
	margin-top: 10px;
}
</style>
<link rel="stylesheet" href="/Hospital/lib/layui-v2.1.6/layui/css/layui.css">
<body>
	<div class="layui-container" style="">
		<div class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">出生日期: </span>
			</div>
			<div class="layui-col-xs5">
				<input type="text" name="birthdate" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
		<div class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">注册时间: </span>
			</div>
			<div class="layui-col-xs5">
				<input type="text" name="registerTime" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
		<div class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">最近登录: </span>
			</div>
			<div class="layui-col-xs5 ">
				<input type="text" name="loginTime" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
		<div class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">登录IP: </span>
			</div>
			<div class="layui-col-xs5">
				<input type="text" name="loginIp" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
		<div id="div_createTime" class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">账号状态: </span>
			</div>
			<div class="layui-col-xs5">
				<input type="text" name="status" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
		<div id="div_createTime" class="layui-row row">
			<div class="layui-col-xs4 layui-col-xs-offset1">
				<span class="layui-form-label">跨域访问: </span>
			</div>
			<div class="layui-col-xs5">
				<input type="text" name="isDomain" class="layui-input inputCss" disabled="disabled">
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="/Hospital/lib/jquery.min.js"></script>
<script type="text/javascript" src="/Hospital/lib/layui-v2.1.6/layui/layui.js"></script>
<script>
	layui.use([ 'form' ], function() {
		var form = layui.form;
		var $ = layui.jquery;
		//resize();
		formDataRender();

		function formDataRender() {
			var data = JSON.parse(localStorage.getItem("detailedData"));
			if(data.birthdate == "1000-01-01") {	//如果为默认值1000-01-01 表示为空
				$('input[name="birthdate"]').val("");
			}else {
				$('input[name="birthdate"]').val(data.birthdate);
			}
			$('input[name="registerTime"]').val(data.registerTime);
			$('input[name="loginTime"]').val(data.loginTime);
			$('input[name="loginIp"]').val(data.loginIp);
			$('input[name="status"]').val(data.status);
			$('input[name="isDomain"]').val(data.isDomain);
		}
		function resize() {
			var bodyHeight = parent.$('#iframeHeight').val() * 0.75;
			var bodyWidth = parent.$('#iframeWidth').val() * 0.96;
			$('body').css({
				'height' : bodyHeight,
				'width' : bodyWidth
			});
			var iconSize = $(document.body).width() * 0.05;
			$('.icon').css({
				'font-size' : iconSize
			});
		}
	});
</script>
</html>